<?php

class Configuration
{
    function getConfigurationHandler()
    {
        static $configurationHandler;
        return $configurationHandler;
    }
    function setConfigurationHandler($newConfigurationHandler)
    {   
        static $configurationHandler;
        $configurationHandler = $newConfigurationHandler;  
    }
    
    function get($param = '')
    {
        if (empty($param))
        {
            die ('TODO: ERROR: Parametro de configuracion vacio');
        }

        $configuration = Configuration::getConfigurationHandler();
        $configuration = $configuration->getConfiguration();

        return $configuration[$param];
    }
}
?>
